package com.wut.clock.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author 
 * @since 2022-05-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysUser对象", description="用户表")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键;主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户名;用户名")
    private String username;

    @ApiModelProperty(value = "密码;密码")
    private String password;

    @ApiModelProperty(value = "姓名")
    private String nickname;

    @ApiModelProperty(value = "用户类型;用户类型")
    private Integer userType;

    @ApiModelProperty(value = "用户邮箱;用户邮箱")
    private String email;

    @ApiModelProperty(value = "手机号;手机号")
    private String phone;

    @ApiModelProperty(value = "性别;性别（0:未知，1：男 2：女）")
    private Integer sex;

    @ApiModelProperty(value = "头像地址;头像地址")
    private String avatar;

    @ApiModelProperty(value = "用户状态;用户状态(0表示正常，1表示禁用)")
    private Integer status;

    @ApiModelProperty(value = "用户备注;用户备注")
    private String remark;

    @ApiModelProperty(value = "创建时间;创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间;更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "逻辑删除;逻辑删除")
    @TableLogic
    private Integer deleted;


}
